package com.qf.service.shangpin_service.impl;

import com.qf.dao.shangpin_dao.ChDao;
import com.qf.service.shangpin_service.ChService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;

/**
 * 12/12/2019
 * Echo
 * sassspringboot
 * Alibaba
 */
@Service
public class ChServiceImpl implements ChService {
    @Autowired
    private ChDao chDao;

    @Override
    @Transactional
        public Integer del(Integer chId,Integer commId) {
        HashMap map = new HashMap();
        map.put("chId", chId);
        map.put("commId",commId);
        Integer j = chDao.delMid(map);
//        Integer i = chDao.delCh(chid);
        return j;
    }
}
